package com.medical.data.service;

import com.medical.data.domain.FormData;
import com.baomidou.mybatisplus.extension.service.IService;
import com.medical.data.vo.*;
import org.springframework.http.HttpRequest;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cj
 * @since 2024-02-06
 */
public interface FormDataService extends IService<FormData> {




    void addFormData(FormData formData, HttpServletRequest request);

/*    Map<String,Object> saveFormData(FormData formData, HttpServletRequest request);*/

    Map<String, Object> getFormData(QueryFormDataVo queryFormDataVo, HttpServletRequest request);

    Map<String, Object> getFormDataDetail(String dataId);

    List<FormData> getFormDataStatuByIds(List<String> ids, String patientId, String projectId);

    Map<String, Object> getFormDataByPatient(GetFormDataVo getFormDataVo);

    List<LastDataVo> passDataNumber();

    void deleteDataById(String patientId);

    void deleteDateByNodeId(String nodeId);

    void deleteDataByFormId(String formId);

    List<Map<String, String>> exportFormData(ExportVo exportVo);

    int getFormDataNumber();

    int getTodayFormDataNumber();


    /*    void exportFormData();*/
}
